package club.zhcs.cms.bean.cms;

import java.util.Date;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.lang.Times;

import com.kerbores.utils.db.data.Entity;

/**
 * 
 * @author Kerbores(kerbores@gmail.com)
 *
 * @project cms
 *
 * @file News.java
 *
 * @description 新闻
 *
 * @copyright 内部代码,禁止转发
 *
 * @time 2016年5月12日 下午1:12:23
 *
 */
@Table("t_news")
@Comment("新闻")
public class News extends Entity {

	@Column("n_create_time")
	@Comment("发布时间")
	private Date createTime = Times.now();

	@Column("n_image_key")
	@Comment("新闻图片")
	private String imageKey;

	@Column("n_title")
	@Comment("新闻标题")
	@ColDefine(width = 200)
	private String title;

	@Column("n_content")
	@Comment("新闻内容")
	@ColDefine(width = 21845, type = ColType.TEXT)
	private String content;

	@Column("n_english_title")
	@Comment("新闻英文标题")
	@ColDefine(width = 200)
	private String englishTitle;

	@Column("n_english_content")
	@Comment("新闻英文内容")
	@ColDefine(width = 21845, type = ColType.TEXT)
	private String englishContent;

	/**
	 * @return the createTime
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime
	 *            the createTime to set
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return the imageKey
	 */
	public String getImageKey() {
		return imageKey;
	}

	/**
	 * @param imageKey
	 *            the imageKey to set
	 */
	public void setImageKey(String imageKey) {
		this.imageKey = imageKey;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title
	 *            the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content
	 *            the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @return the englishTitle
	 */
	public String getEnglishTitle() {
		return englishTitle;
	}

	/**
	 * @param englishTitle
	 *            the englishTitle to set
	 */
	public void setEnglishTitle(String englishTitle) {
		this.englishTitle = englishTitle;
	}

	/**
	 * @return the englishContent
	 */
	public String getEnglishContent() {
		return englishContent;
	}

	/**
	 * @param englishContent
	 *            the englishContent to set
	 */
	public void setEnglishContent(String englishContent) {
		this.englishContent = englishContent;
	}

}
